import { action, makeObservable, observable } from "mobx"
export default class CounterStore {
    constructor() {
        this.name = '111'
        makeObservable(this, {

            // 标记为状态
            name: observable,
            // 标记为更改状态的方法
            increment: action.bound,
            decrement: action.bound
        })
    }
    increment() {
        this.name = '222'
    }
    decrement() {
        this.count -= 1
    }
}
